{% extends "kingadmin/table_index.html"%}
{% load tags %}
{% block container %}
    {% display_obj_related objs %}
{#    {% errors %}#}
    <ul style="color: red">
        {% for k,v in errors.items %}
        <li>{{ k }}:{{ v }}</li>
        {% endfor %}
    </ul>
    <form method="post">{% csrf_token %}
        <input type="submit" class="btn btn-danger" value="确定">
{#        <input type="submit" class="btn btn-default" style="margin-left: 20px" value="取消">#}
        <input type="hidden" value="yes" name="delete_confirm">
        <input type="hidden" value="{{ selected_ids }}" name="selected_ids">
        <input type="hidden" value="{{ action }}" name="action">
        <a href="{% url 'table_obj' app_name table_name %}" class="btn btn-default" style="margin-left: 20px">取消</a>
    </form>
{% endblock %}